package com.lishe.lishe.net;

import com.lishe.lishe.lishe.base.BaseApplication;
import java.io.File;
import okhttp3.Cache;

/**
 * @author Created by zl on 2017/12/26.
 */

public class HttpCache {

    private static final int HTTP_RESPONSE_DISK_CACHE_MAX_SIZE = 50 * 1024 * 1024;

    public static Cache getCache() {
        return new Cache(new File(BaseApplication.getContext().getCacheDir().getAbsolutePath() + File
                .separator + "data/NetCache"),
                HTTP_RESPONSE_DISK_CACHE_MAX_SIZE);
    }
}